package com.itheima.ai.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 会话持久实体类
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Conversation implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String conversationId;//会话id
    private String message; //会话内容
    private String type;//会话类型 system, user, assistant,tool
    private LocalDateTime createTime;//创建时间
}